ccR.Add_Rotation(
	1,
	"Ankhy_BASIC_Arcane_Mage",
	"BASIC Rotation.\n\n Made by Ankhy."
)
function Ankhy_BASIC_Arcane_Mage()

			if IsShiftKeyDown() then 
				if ccR.Spell.IsReady("Rune of Power") then SpellStopCasting() ccR.Cast.Spell("Rune of Power") end
					CameraOrSelectOrMoveStart()
					CameraOrSelectOrMoveStop()
				return
			end

	if (ccR.Player.IsInCombat() or (ccR.Player.IsInGroup() and ccR.Target.IsInCombat())) and ccR.Target.Is.Attackable() then
		if ccR.Spell.IsReady("Arcane Explosion") and ccR.Player.Count(8) >= 5 then ccR.Cast.Spell("Arcane Explosion") end
		if not ccR.Player.IsMoving() then
			if ccR.Target.Is.Attackable()
			and ccR.Spell.Is.Ready(PRISMATIC_CRYSTAL)
			and not ccR.Target.IsMoving()
			and ccR.Spell.CDDuration("Arcane Power") < 1
			and ccR.Player.DebuffStacks("Arcane Charge") == 4
			and ccR.Target.Distance() <= 40
			then
				ccR.Cast.AoE(PRISMATIC_CRYSTAL, "target", 40, 12)
			end
			if ccR.Target.Name() == "Prismatic Crystal" then
				if ccR.Spell.IsReady("Supernova") then ccR.Cast.AF.Attack("Supernova") end
				if ccR.Spell.CanAttack("Arcane Blast") then ccR.Cast.AF.Attack("Arcane Blast") end
			end
			if ccR.Player.Crystal.Exists() then ccR.Player.Crystal.Target() end
			if ccR.Spell.IsReady("Arcane Orb") then ccR.Cast.AF.Spell("Arcane Orb") end
			if ccR.Spell.IsReady("Supernova") and ccR.Spell.CDDuration("Prismatic Crystal") > 20 then ccR.Cast.AF.Attack("Supernova") end
			if ccR.Spell.CanAttack("Arcane Missiles") and (ccR.Player.DebuffStacks("Arcane Charge") == 4 or ccR.Spell.Charges("Arcane Missiles") == 3) then ccR.Cast.AF.Attack("Arcane Missiles") end
			if ccR.Spell.CanAttack("Arcane Blast") and ccR.Player.Mana() >= 93 then ccR.Cast.AF.Attack("Arcane Blast") end
			if ccR.Spell.CanAttack("Arcane Missiles") and ccR.Player.DebuffStacks("Arcane Charge") == 4 then ccR.Cast.AF.Attack("Arcane Missiles") end
			if not ccR.Player.HasBuff("Arcane Missiles!") and ccR.Spell.CanAttack("Arcane Barrage") and not ccR.Player.HasBuff("Arcane Power") and ccR.Player.DebuffStacks("Arcane Charge") == 4 then ccR.Cast.AF.Attack("Arcane Barrage") end
			if ccR.Spell.CanAttack("Arcane Blast") then ccR.Cast.AF.Attack("Arcane Blast") end
		end	
	end	
end		